<template>
  <mescroll
    class="list-draw"
    @mescrollInit="init"
    :upAuto="!hasInit && actived"
  >
    <div style="padding: 0 16px; background: white">
      <DynamicItem
        v-for="(item, index) in dynamicList"
        :info="item"
        :key="index"
      ></DynamicItem>
    </div>
  </mescroll>
</template>

<script>
import Mescroll from 'lottery/components/Mescroll/Mescroll';
import { DynamicItem } from '@/components/DynamicMessage/index';

export default {
  name: 'VueJiangduoduoComMood',
  props: {
    type: {
      type: [String, Number],
      required: true,
    },
    actived: {
      type: Boolean,
      default: false,
    },
  },
  components: { Mescroll, DynamicItem },
  data() {
    return {
      hasInit: false,
      dynamicList: [
        {
          ipAddress: '山东',
          shortTime: '03-03 14:51',
          content: '排三052期，仅供参考。',
          likeCount: 30,
          replyCount: 20,
          imgList: [
            {
              originImg:
                'http://img.caihongduoduo.com/2023-03-02/941096d3-06b2-48d1-a231-dfe742285d811677772283733.jpg?width=337&height=538',
              thumbImg:
                'https://f.caihongduoduo.com/icon/7a52ff26-8428-4388-808b-e6b2f46347184396168654356398232.jpg?width=337&height=538',
            },
            {
              originImg:
                'http://img.caihongduoduo.com/2023-03-02/05491a7d-4dd8-4c56-aeef-8c43bcf405011677772283731.jpg?width=300&height=400',
              thumbImg:
                'https://f.caihongduoduo.com/icon/7fcba951-2078-4324-9290-566807bdd8d95420807163183492442.jpg?width=300&height=400',
            },
            {
              originImg:
                'http://img.caihongduoduo.com/2023-03-02/24726609-ab74-4846-8c29-36300e3066bc1677772283770.jpg?width=1080&height=2400',
              thumbImg:
                'https://f.caihongduoduo.com/icon/a81155ff-3e70-4a43-ae75-344c81b3ab3b4508516763200986091.jpg?width=540&height=1200',
            },
            {
              originImg:
                'http://img.caihongduoduo.com/2023-03-02/504360b7-bced-4b03-bd2d-6e19521734881677772283750.jpg?width=305&height=461',
              thumbImg:
                'https://f.caihongduoduo.com/icon/f74ea95f-9feb-46d0-9914-dd4356eaa6368814911212411718399.jpg?width=305&height=461',
            },
            {
              originImg:
                'http://img.caihongduoduo.com/2023-03-02/9364b261-f2b6-4ac2-8943-c51d9f1c18821677772283714.jpg?width=292&height=260',
              thumbImg:
                'https://f.caihongduoduo.com/icon/50a30cce-545f-4262-8eaa-e9162a2256d13067666842268619111.jpg?width=292&height=260',
            },
            {
              originImg:
                'http://img.caihongduoduo.com/2023-03-02/42096321-7a76-492d-855d-10e55c3e09d91677772302447.jpg?width=1080&height=1276',
              thumbImg:
                'https://f.caihongduoduo.com/icon/5ac98296-4144-43a2-b281-34647c91535b4136270057564824702.jpg?width=507&height=600',
            },
          ],
          isLike: 0,
          userInfo: {
            faceUrl:
              'https://f.caihongduoduo.com/2023/01/04/DA74C23025308F97D2CA9301C964BF8B.jpg',
            nickName: '太行老赫的关门弟子',
          },
        },
        {
          ipAddress: '河南',
          shortTime: '03-03 14:51',
          content: '昨天排三3D和值全对，没打对😂',
          likeCount: 3,
          replyCount: 24,
          imgList: [
            {
              originImg:
                'http://img.caihongduoduo.com/2023-03-02/aaf62780-101c-42d3-8aaf-90f6aa769d031677729369818.jpg?width=1080&height=2400',
              thumbImg:
                'https://f.caihongduoduo.com/icon/272aac09-4a90-48e8-9187-7a2a5881c11b4679272341111900967.jpg?width=540&height=1200',
            },
            {
              originImg:
                'http://img.caihongduoduo.com/2023-03-02/91fe13c6-5895-44b6-8b05-aae5c4378eee1677729369828.jpg?width=1080&height=2400',
              thumbImg:
                'https://f.caihongduoduo.com/icon/0560ba5c-68ed-40ef-84b4-87ee1bde86a326477319795577263.jpg?width=540&height=1200',
            },
          ],
          isLike: 1,
          userInfo: {
            faceUrl:
              'https://f.caihongduoduo.com/2023/02/12/4FBA2A7AB811F0A60945F94DE094087E.jpg',
            nickName: '有三地高手吗',
          },
        },
      ],
    };
  },

  mounted() {},

  methods: {
    async init(cb) {
      console.log('🚀 ~ file: national.vue:38 ~ init ~ cb:', cb);
      this.hasInit = true;

      try {
        /* empty */
      } catch (error) {
        /* empty */
      } finally {
        cb(false);
      }
    },
  },
};
</script>

<style lang="scss" scoped></style>
